<th:block xmlns:th="http://www.thymeleaf.org">
  <div class="rb-left-sidebar v2">
    <div class="left-sidebar-wrapper">
      <a class="left-sidebar-toggle">REBUILD</a>
      <div class="left-sidebar-spacer">
        <div class="left-sidebar-scroll rb-scroller">
          <div class="left-sidebar-content">
            <ul class="sidebar-elements">
              <li class="divider">[[${bundle.L('系统')}]]</li>
              <li th:class="${active == 'systems'} ? 'active'">
                <a th:href="@{/admin/systems}"><i class="icon mdi mdi-cog"></i><span>[[${bundle.L('通用配置')}]]</span></a>
              </li>
              <li class="parent">
                <a><i class="icon mdi mdi-integrated-circuit-chip"></i><span>[[${bundle.L('服务集成')}]]</span></a>
                <ul class="sub-menu">
                  <li class="title">[[${bundle.L('服务集成')}]]</li>
                  <li class="nav-items">
                    <div class="rb-scroller">
                      <div class="content">
                        <ul>
                          <li th:class="${active == 'integration-storage'} ? 'active'">
                            <a th:href="@{/admin/integration/storage}"><span>[[${bundle.L('云存储')}]]</span></a>
                          </li>
                          <li th:class="${active == 'integration-submail'} ? 'active'">
                            <a th:href="@{/admin/integration/submail}"><span>[[${bundle.L('邮件与短信')}]]</span></a>
                          </li>
                          <li th:class="${active == 'integration-wxwork'} ? 'active'">
                            <a th:href="@{/admin/integration/wxwork}"><span>[[${bundle.L('企业微信')}]]</span> <sup class="rbv"></sup></a>
                          </li>
                          <li th:class="${active == 'integration-dingtalk'} ? 'active'">
                            <a th:href="@{/admin/integration/dingtalk}"><span>[[${bundle.L('钉钉')}]]</span> <sup class="rbv"></sup></a>
                          </li>
                        </ul>
                      </div>
                    </div>
                  </li>
                </ul>
              </li>
              <li th:class="${active == 'apis-manager'} ? 'active'">
                <a th:href="@{/admin/apis-manager}"><i class="icon mdi mdi-api"></i><span>[[${bundle.L('API 密钥')}]]</span></a>
              </li>
              <li class="divider">[[${bundle.L('业务实体')}]]</li>
              <li th:class="${active == 'entities'} ? 'active'">
                <a th:href="@{/admin/entities}"><i class="icon mdi mdi-widgets-outline"></i><span>[[${bundle.L('实体管理')}]]</span></a>
              </li>
              <li th:class="${active == 'classifications'} ? 'active'">
                <a th:href="@{/admin/metadata/classifications}"><i class="icon mdi mdi-form-dropdown"></i><span>[[${bundle.L('分类数据')}]]</span></a>
              </li>
              <li th:class="${active == 'robot-approval'} ? 'active'">
                <a th:href="@{/admin/robot/approvals}"><i class="icon mdi mdi-progress-check"></i><span>[[${bundle.L('审批流程')}]]</span></a>
              </li>
              <li th:class="${active == 'robot-transforms'} ? 'active'">
                <a th:href="@{/admin/robot/transforms}"><i class="icon mdi mdi-transfer"></i><span>[[${bundle.L('记录转换')}]]</span></a>
              </li>
              <li th:class="${active == 'robot-trigger'} ? 'active'">
                <a th:href="@{/admin/robot/triggers}"><i class="icon mdi mdi-cogs"></i><span>[[${bundle.L('触发器')}]]</span></a>
              </li>
              <li th:class="${active == 'report-templates'} ? 'active'">
                <a th:href="@{/admin/data/report-templates}"><i class="icon mdi mdi-microsoft-excel"></i><span>[[${bundle.L('报表模板')}]]</span></a>
              </li>
              <li th:class="${active == 'data-imports'} ? 'active'">
                <a th:href="@{/admin/data/data-imports}"><i class="icon mdi mdi-database-import"></i><span>[[${bundle.L('数据导入')}]]</span></a>
              </li>
              <li th:class="${active == 'data-syncer'} ? 'active'" th:classappend="hide">
                <a th:href="@{/admin/data/data-syncer}"><i class="icon mdi mdi-database-sync"></i><span>[[${bundle.L('数据同步')}]]</span> <sup class="rbv"></sup></a>
              </li>
              <li th:class="${active == 'extforms'} ? 'active'">
                <a th:href="@{/admin/extforms}"><i class="icon mdi mdi-format-list-group-plus"></i><span>[[${bundle.L('外部表单')}]]</span> <sup class="rbv"></sup></a>
              </li>
              <li class="divider">[[${bundle.L('更多功能')}]]</li>
              <li th:class="${active == 'projects'} ? 'active'">
                <a th:href="@{/admin/projects}"><i class="icon mdi mdi-shape-outline"></i><span>[[${bundle.L('项目')}]]</span></a>
              </li>
              <li th:class="${active == 'frontjs-code'} ? 'active'">
                <a th:href="@{/admin/frontjs-code}"><i class="icon mdi mdi-language-javascript"></i><span>FrontJS</span> <sup class="rbv"></sup></a>
              </li>
              <li class="divider">[[${bundle.L('用户')}]]</li>
              <li th:class="${active == 'users'} ? 'active'">
                <a th:href="@{/admin/bizuser/users}"><i class="icon mdi mdi-account-multiple"></i><span>[[${bundle.L('部门用户')}]]</span></a>
              </li>
              <li th:class="${active == 'role-privileges'} ? 'active'">
                <a th:href="@{/admin/bizuser/role-privileges}"><i class="icon mdi mdi-account-lock"></i><span>[[${bundle.L('角色权限')}]]</span></a>
              </li>
              <li th:class="${active == 'teams'} ? 'active'">
                <a th:href="@{/admin/bizuser/teams}"><i class="icon mdi mdi-briefcase-account"></i><span>[[${bundle.L('团队')}]]</span></a>
              </li>
              <li class="divider">[[${bundle.L('审计')}]]</li>
              <li th:class="${active == 'login-logs'} ? 'active'">
                <a th:href="@{/admin/audit/login-logs}"><i class="icon mdi mdi-login"></i><span>[[${bundle.L('登录日志')}]]</span></a>
              </li>
              <li th:class="${active == 'revision-history'} ? 'active'">
                <a th:href="@{/admin/audit/revision-history}"><i class="icon mdi mdi-clock-edit-outline"></i><span>[[${bundle.L('变更历史')}]]</span></a>
              </li>
              <li th:class="${active == 'recycle-bin'} ? 'active'">
                <a th:href="@{/admin/audit/recycle-bin}"><i class="icon mdi mdi-recycle-variant"></i><span>[[${bundle.L('回收站')}]]</span></a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</th:block>
